package cn.neusoft.service.impl;

import cn.neusoft.mapper.BusinessMapper;
import cn.neusoft.pojo.Business;
import cn.neusoft.service.IBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * extends BaseService<Business> ： 在BaseService中对基本的5个方法已经做了具体实现  模块中不需要实现
 */
@Service
public class BusinessService extends BaseService<Business> implements IBusinessService {

    @Autowired
    BusinessMapper businessMapper;

//    @Override
//    public ResultBean add(Business t) {
//
//        if (t == null){
//            return ResultBean.ERROR("参数为空");
//        }
//
//        int i = baseMapper.add(t);
//
//        return i>0?ResultBean.SUCCESS():ResultBean.ERROR("添加失败");
//    }
}
